.warehouse-screen {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.warehouse-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.warehouse-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.warehouse-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.warehouse-capacity,
.warehouse-coins {
  font-size: 1.1rem;
  color: #ccc;
  margin: 0;
}

.warehouse-coins {
  color: #f1c40f;
  font-weight: bold;
}

.warehouse-content {
  min-height: 400px;
  margin-bottom: 2rem;
}

.empty-warehouse {
  text-align: center;
  padding: 4rem 2rem;
  color: #aaa;
}

.empty-warehouse p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* 表格容器 */
.warehouse-table-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 表格样式 */
.warehouse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.warehouse-table th,
.warehouse-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表头样式 */
.warehouse-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 行样式 */
.warehouse-row {
  transition: all 0.2s ease;
}

.warehouse-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 物品名称列 */
.item-name {
  min-width: 250px;
  width: 50%;
}

.name-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.name-text {
  font-weight: bold;
  cursor: help;
  font-size: 1rem;
  position: relative;
  display: inline-block;
  padding: 0.2rem 0;
  border-bottom: 1px dotted transparent;
  transition: all 0.2s ease;
}

.name-text:hover {
  text-decoration: none;
  text-shadow: 0 0 5px currentColor;
  border-bottom-color: currentColor;
  transform: translateY(-1px);
}

/* 增强工具提示的视觉效果 */
.name-text[title]:hover::after {
  content: "💡 悬停查看详情";
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 0.7rem;
  color: #888;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.8;
}

/* 类型列 */
.item-type {
  color: #ccc;
  font-size: 0.9rem;
  width: 20%;
}

/* 数量列 */
.item-quantity {
  text-align: center;
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
  width: 15%;
}

/* 操作列 */
.item-action {
  text-align: center;
  width: 15%;
  min-width: 80px;
}

.sell-btn-compact {
  background: linear-gradient(135deg, #27ae60, #229954);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: all 0.2s ease;
  min-width: 60px;
}

.sell-btn-compact:hover:not(:disabled) {
  background: linear-gradient(135deg, #229954, #1e8449);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.sell-btn-compact:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.not-sellable {
  color: #95a5a6;
  font-style: italic;
  font-size: 0.8rem;
}

.warehouse-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.back-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .warehouse-screen {
    padding: 1rem;
  }
  
  .warehouse-header h2 {
    font-size: 1.5rem;
  }
  
  .warehouse-info {
    gap: 1rem;
  }
  
  .empty-warehouse p {
    font-size: 1rem;
  }

  /* 移动端表格优化 */
  .warehouse-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .warehouse-table {
    min-width: 480px;
  }
  
  .warehouse-table th,
  .warehouse-table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .item-name {
    min-width: 180px;
    width: 45%;
  }
  
  .name-text {
    font-size: 0.85rem;
  }
  
  .item-type {
    font-size: 0.8rem;
    width: 25%;
  }
  
  .item-quantity {
    font-size: 0.85rem;
    width: 15%;
  }
  
  .item-action {
    width: 15%;
  }
  
  .sell-btn-compact {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    min-width: 50px;
  }
}

@media (max-width: 480px) {
  .warehouse-screen {
    padding: 0.5rem;
  }
  
  .warehouse-table th,
  .warehouse-table td {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
  
  .warehouse-header h2 {
    font-size: 1.3rem;
  }
  
  .warehouse-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}